<template>
  <section class="latest-news">
    <h2>最新动态</h2>
    <div class="news-item" v-for="news in newsList" :key="news.id">
      <span class="news-date">{{ news.date }}</span>
      <p class="news-title">{{ news.title }}</p>
    </div>
  </section>
</template>

<script>
export default {
  name: "LatestNews",
  data() {
    return {
      newsList: [
        { id: 1, date: "07.25 2019", title: "北京师范大学荣获2019年度最佳高校" },
        { id: 2, date: "07.25 2019", title: "教育部发布新政策，推进科技教育发展" },
        { id: 3, date: "07.25 2019", title: "国家出台新规，推动教育产业升级" }
      ]
    };
  }
};
</script>

<style scoped>
.latest-news {
  padding: 40px 50px;
  background-color: #f5f5f5;
}

.latest-news h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.news-item {
  background-color: white;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-date {
  font-size: 14px;
  color: #888;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}
</style>
